<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>Insert title here</title>
    <link href="http://back.zbswzn.cn/login/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <link href="http://back.zbswzn.cn/login/bootstrap-theme.css" rel="stylesheet" type="text/css"/>
    <link href="http://back.zbswzn.cn/login/elegant-icons-style.css" rel="stylesheet" type="text/css"/>
    <link href="http://back.zbswzn.cn/login/font-awesome.css" rel="stylesheet" type="text/css"/>
    <link href="http://back.zbswzn.cn/login/style.css" rel="stylesheet" type="text/css"/>
    <link href="http://back.zbswzn.cn/login/style-responsive.css" rel="stylesheet" type="text/css"/>
    <script src="http://back.zbswzn.cn/js/jquery.js" type="text/javascript"></script>
</head>
<!-- 页面需要注意，所有的标签都必须要有结束标签，不然做为Thymeleaf模板会出错 -->
<body>
<table class="table table-striped">
    <tr>
        <td>id</td>
        <td>名字</td>
        <td>操作</td>
    </tr>
    <tr th:each="tk:${task}">
        <td th:text="${tk.id}"></td>
        <td th:text="${tk.name}"></td>
        <td><a th:href="@{'/task/del/' + ${tk.id}}">删除</a> | <a th:href="@{'/task/detail/' + ${tk.id}}">详情</a></td>
    </tr>
</table>


<br/>

<form id="iform" th:action="@{'/task/add'}" th:method="post">
    <table class="table table-striped">
        <tr>
            <td>任务名字</td>
            <td><input type="text" name="name" th:value="${targetTask?.name}"/></td>
        </tr>
        <tr>
            <td>
                提交
            </td>
            <td><input type="submit" value="提交"/></td>
        </tr>
    </table>
</form>

</body>
</html>